import java.awt.Point;

public class MyPoint extends Point {
	
	protected double angle;
	
	public MyPoint(int x, int y, double a) {
		super(x, y);
		angle = a;
	}
	
	public MyPoint compute(int n) {
		return new MyPoint((int)(Math.cos(angle)*n+x), (int)(Math.sin(angle)*n+y), angle);
	}
	
	public double getAngle() {
		return angle;
	}

}
